home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7250 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.dax.net!sol
  2. From: Nils.Thommesen@kvatro.no (Nils Andreas Thommesen)
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools.mfc
  4. Subject: Re: Getting functions out of libraries to work
  5. Date: Thu, 22 Feb 96 11:45:21 GMT
  6. Organization: Kvatro-Notis A/S
  7. Message-ID: <4ghlc2$f9o@news.dax.net>
  8. References: <312BBC29.6772@uni.massey.ac.nz>
  9. NNTP-Posting-Host: sol.kvatro.no
  10. X-Newsreader: News Xpress Version 1.0 Beta #3
  11.  
  12. In article <312BBC29.6772@uni.massey.ac.nz>,
  13.    Nigel.Ramsay.1@massey.ac.nz wrote:
  14. >Hi,
  15. >
  16. >I am trying to get some functions out of a library to work. The problem 
  17. >is that I keep getting an "unresolved external" error whenever I try to 
  18. >call the functions.
  19. >
  20. >The funny thing is that it works fine when I compile under just C.
  21. >
  22. >I am using Microsoft Visual C++ 1.0, running under Windows 95.
  23. >
  24. >Please help me.
  25. >
  26. >***** All email replies to: Nigel.Ramsay.1@uni.massey.ac.nz *****
  27. >                 [not the reply-to address]
  28. >Thanks,
  29. >
  30. >Nigel Ramsay.
  31.  
  32.  
  33. Are you linking the library implicitly or explicitly?
  34. Implicit: just specify it in the Project-edit-dialog
  35. Explicit: a lot more trouble, use LoadLibrary(), then follow the help-pages.
  36.  
  37. "Unresolved external" means the compiler doesn't know about the function. Have 
  38. you included all the necessary headers?
  39.  
  40.  
  41. Nils Andreas Thommesen
  42. -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
  43. Email: Nils.Thommesen@kvatro.no
  44. Work : Kvatro-Notis, Pirsenteret, N-7005 Trondheim;  +47 73 545 722
  45. Home : E.B Schieldropsv. 9-24,7033 Trondheim,Norway; +47 73 8888 93
  46. Fax  : +47 73 545 750               |  I'm left-handed, left-eyed,
  47. WWW  : http://www.kvatro.no/~nat    |  left-footed but not left
  48.        http://www.kvatro.no/notis   |  behind!
  49.  
  50.  
  51.  
  52.